package com.netease.framework;

import android.content.Context;
import android.content.res.Resources;
import android.content.res.Resources.NotFoundException;
import android.graphics.drawable.Drawable;

public class d
  implements h
{
  private static final String a = "InternalSkinResources";
  private static final String b = "_black";
  private Context c;
  private Resources d;

  public d(Context paramContext)
  {
    this.c = paramContext.getApplicationContext();
    this.d = this.c.getResources();
  }

  private int d(int paramInt)
  {
    String str1 = this.d.getResourceTypeName(paramInt);
    String str2 = a(this.d.getResourceEntryName(paramInt));
    return this.d.getIdentifier(str2, str1, this.c.getPackageName());
  }

  public Drawable a(int paramInt)
  {
    int i = d(paramInt);
    if (i <= 0);
    for (Drawable localDrawable = null; ; localDrawable = this.d.getDrawable(i))
      return localDrawable;
  }

  protected String a(String paramString)
  {
    return paramString + "_black";
  }

  public int b(int paramInt)
  {
    int i = d(paramInt);
    if (i <= 0)
      throw new Resources.NotFoundException("no resource found for: " + paramInt);
    return this.d.getColor(i);
  }

  public int c(int paramInt)
  {
    return d(paramInt);
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.framework.d
 * JD-Core Version:    0.6.0
 */